<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Nginx 控制面板</title>
    <style>
        body { font-family: Arial, sans-serif; padding: 0; margin: 0; display: flex; }
        .content { flex: 1; padding: 20px; }
        .btn { padding: 10px 20px; margin: 10px; border: none; color: white; background-color: #4CAF50; cursor: pointer; }
        textarea { width: 100%; height: 500px; font-family: monospace; }
    </style>
</head>
<body>


<div class="content">
    <div style="display: flex;justify-content: space-between;align-items: center">
        <h2>编辑 Nginx 配置文件</h2>
        <div>
            <a href="/status"><button class="btn" >查看 Nginx 状态</button></a>
        </div>
    </div>
    <form action="/saveConfig" method="POST">
        <input type="hidden"  name="filePath" th:value="${filePath}" ><br>
        <textarea name="nginxConfig" th:text="${nginxConfig}"></textarea><br>
        <button type="submit" class="btn" style="background-color: #3498db;">保存配置并重启 Nginx</button>
    </form>

</div>

</body>
</html>
